Search this book | Previous | Table of contents | Next

Adding rudimentary input to your .script files


This section describes how to add rudimentary input to your .script files by extending your URLs.

Knowing that path_args and http_search_args are variables, you can supply rudimentary input to your .script files by defining the values of these variables in a URL. To do so you need to keep in mind the following guidelines:

  1. path_args are defined by the text after the dollar sign ($) and before the question mark (?).
  2. http_search_args are defined by the text following the question mark (?).
  3. All path_arg and http_search_arg strings must be encoded according the specification layed out for URLs.
The following URLs all run the hello-world-03.script, but in these examples, the scripts are being called using input: Notice how the value of script_name is consistent in the output for all three scripts.

Unfortunately, getting input in this manner is impractical; it would be difficult, if not impossible, to get your readers to enter such hard-to-read and understand URLs.


Search this book | Previous | Table of contents | Next

Eric last edited this page on September 26, 1995. Please feel free to send comments.